package cn.czg.cms.mapper;


import cn.czg.cms.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    User findByUsername(String username);

    User selectByPhone(@Param("phone") String phone);

    void updateNickNameById(@Param("id") String id, @Param("nickName") String nickName);

    void updateAvatar(@Param("id") String id, @Param("avatar") String avatar);

    void updateGender(@Param("id") String id, @Param("gender") int gender);
}
